package dt.bankAction;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class AccountAction extends ActionSupport implements SessionAware {
	/**
	 * 
	 */
	private int BoardFlag = 6;
	private Map session;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String execute() throws Exception {
		return SUCCESS;
	}
	
	public String form() throws Exception {
			
		if (session.get("id") == null) {
			
			return ERROR;
		} else {
			return SUCCESS;
		}
	}
	
	public int getBoardFlag() {
		return BoardFlag;
	}

	public void setBoardFlag(int BoardFlag) {
		this.BoardFlag = BoardFlag;
	}

	@Override
	public void setSession(Map session) {
		// TODO Auto-generated method stub
		this.session = session;
	}
	
	public Map getSession() {
		// TODO Auto-generated method stub
		return session;
	}
}
